package com.iv.durian.cloud.dao.mapper;

import com.iv.durian.cloud.Banner;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface BannerMapper {

   int add(@Param("banner") Banner banner);

   int update(@Param("banner") Banner banner);

   int remove(@Param("id") Integer id);

   int count(@Param("type") Integer type, @Param("status")Integer status);

   List<Banner> list(@Param("type") Integer type, @Param("status")Integer status);

   Banner get(@Param("id") Integer id);
}
